package org.msd.service;


import org.msd.dao.Homepage;
import org.msd.model.Information;
import org.msd.service.iml.Registered;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LoginIMp implements Registered {
  @Autowired
  private Homepage homepage;
  /*
  登入和注册
   */

    @Override
    public Information querycondition(String name, String password) {
        return homepage.querycondition(name,password);
    }

    @Override
    public int registered(Information information) {
        return homepage.registered(information);
    }

    @Override
    public int changePassword(String cellphonenumber, String password) {
        return homepage.changePassword(cellphonenumber,password);
    }

    @Override
    public int Insertuser(String name, String password, String cellphonenumber) {
        return homepage.Insertuser(name, password, cellphonenumber);
    }

    @Override
    public int Deletelogininformation(String name) {
        return homepage.Deletelogininformation(name);
    }


}
